package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.UserXsCard;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserXsCardMapper extends BaseMapper<UserXsCard> {

    /**
     * 根据用户id或者新生账户Id获取用户绑卡列表
     *
     * @param userId   用户id
     * @param xsUserId 新生账户Id
     * @return list
     */
    List<UserXsCard> getUserCardsByUserIdOrXsUserId(@Param("userId") String userId, @Param("xsUserId") String xsUserId);

    /**
     * 更新绑卡状态
     *
     * @param id     id
     * @param status status
     * @return int
     */
    int updateStatusById(@Param("id") Long id, @Param("status") String status);


}
